<?php


namespace addons\ymypaylinx\library\paylinx;


class Verify extends Base
{
    public function __construct(array $items = [])
    {
        parent::__construct($items);
    }

    public function verify($data){
        $original_sign = $data['sign'];
        unset($data['sign']);
        $sign = $this->sign($data);
        if($original_sign  == $sign){
            return true;
        }else{
            return false;
        }
    }

}